package com.billing.service;

import java.util.List;

import com.billing.model.entity.TLeave;

public interface LeaveService {

	/**
	 * 新增请假审批业务数据
	 * @param leave
	 * @return
	 */
	public int insertTLeave(TLeave leave);
	/**
	 * 根据id获取请假信息
	 * @param id
	 * @return
	 */
	public TLeave getTLeaveById(int id);
	/**
	 * 根据用户id、起始和结束时间获取请假信息
	 * @param starttime
	 * @param endtime
	 * @param id
	 * @return
	 */
	public List<TLeave> getTLeaveList(long starttime,long endtime,int id);
}
